package ar.edu.itba.pod.main;

import org.joda.time.Duration;

import ar.edu.itba.pod.agent.market.Resource;
import ar.edu.itba.pod.agent.runner.Simulation;
import ar.edu.itba.pod.legajo45129.agentSimulation.DistributedSimulation;
import ar.edu.itba.pod.time.TimeMapper;
import ar.edu.itba.pod.time.TimeMappers;

public class SimulationFactory {
	private static final Resource gold = new Resource("Mineral", "Gold");
	private static final Resource copper = new Resource("Mineral", "Copper");
	private static final Resource steel = new Resource("Alloy", "Steel");
	
	public static Simulation createSimulation() {
		TimeMapper timeMapper = TimeMappers.oneSecondEach(Duration.standardHours(6));
		Simulation node = new DistributedSimulation(timeMapper);
		return node;
	}
	
	public static Resource getSteel() {
		return steel;
	}


	public static Resource getCopper() {
		return copper;
	}
	
	public static Resource getGold() {
		return gold;
	}

}
